<?php
try {
  $plugin = new stdClass();
  $plugin->folder = basename(dirname(__FILE__));
  DbUtils::add($myPdo, 'pz2_plugin', $plugin);
} catch (PDOException $e) {
}
$sql = "CREATE TABLE IF NOT EXISTS `" . TABLE_NAME_PREFIX_PLUGIN . basename(dirname(__FILE__)) . "_item`(
         `id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
         `instance_id` int DEFAULT 0,
         `order_number` smallint DEFAULT 0,
         `title` varchar(256) DEFAULT '',
         `description` text,
         `size` float DEFAULT 0,
         `path` varchar(256) DEFAULT ''
        ) ENGINE=MYISAM;";
$myPdo->exec($sql);
?>